package com.woniu.communitymanagement.controller;

import com.woniu.communitymanagement.entity.HttpResult;
import com.woniu.communitymanagement.service.PropertyTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/proType")
@CrossOrigin(origins = "*")
public class propertyTypeController {

    @Autowired
    private PropertyTypeService ps;

    @RequestMapping("/list")
    public HttpResult selectAll(){
        return ps.selectAll();
    }
}
